pp108 : Viewing and Editing the XML Structure of a WS-AppServer Model

Viewing and Editing the XML Structure of a WS-AppServer Model

This topic describes the procedure to view and edit the XML structure of a model in the WS-AppServer Package.

Before you begin this task:
Create a data model using WS-AppServer Package generator.

The XML structure presents the detailed layout of the data model. It displays all the methods, attributes, and relations that exist in that model. It also displays whether a class is inherited or derived.
The option to edit is helpful when you want to add more attributes or methods to the model in the XML editor itself, without having to use the context menu. The moment you save the changes in the XML editor, they immediately reflect on the UI.

  1. Double-click the <WS-AppServer Package> from either of the following locations:
    • Workspace Documents (My Recent Documents) window.
    • Workspace Documents (Explorer) > <solution> > <project> . The WS-AppServer Package window appears, displaying all the models and their corresponding attributes, relations methods, and parameters.
  2. In the Models box, right-click a model and select View/Edit XML. The XML dialog box appears, displaying the structure of the model in XML.
  3. Modify the layout of the model by adding or removing attributes, methods, and parameters, if required. For example, if you add an attribute, it gets added to the list of attributes on the Attributes tab.

    Tip: It is not mandatory to modify the XML structure. You may use this option just to view and study the XML structure of the model and replicate it in another custom model.


  4. Click . The changes, if any, are saved and the details of the model on the UI are updated accordingly.
  5. Close the XML dialog box.
    You have viewed the XML structure of the WS-AppServer model.

Related concepts

Derived Custom Class

Related tasks

Creating a Query-based Custom Class
Creating a Custom Class
Viewing the Object Layout of a Class

Related reference

Object Layout of Custom Classes
Properties of the Attribute Element
Properties of the Class Element
Properties of the Method Element
Properties of the Parameter Element
Properties of the Relation Attribute
Properties of the Type Element